package cn.kgc.layui.dao;

import cn.kgc.layui.entity.Authority;
import cn.kgc.layui.entity.Manager;
import cn.kgc.layui.entity.Role;
import cn.kgc.layui.vo.LoginVO;

import java.sql.SQLException;
import java.util.List;

public interface ManagerDao {
    /***
     * 查询页面展示数据
     * @param start 从那个位置开始
     * @param size 查询的条数
     * @return List<Student>
     */
    List<Manager> findAllByPage(int start, int size, Manager manager);
    int save(Manager manager) throws SQLException;
    void saveManagerRole(String managerId, String roleIds);
    int update(Manager manager) throws SQLException;
    int delete(String id) throws SQLException;
    Manager doLogin(LoginVO loginVO);
    // 查询总条数
    long selectTotalCount();
    List<Authority> getAuth(String managerId);
}
